/*Man H. Vu
 *CS 362 SE II
 *Testing Embargo Card
 */

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"

int main(){
  int s = 100;
  int players = 4;
  int cards[9] = {tribute, gardens, embargo, sea_hag, village, smithy, great_hall, cutpurse, adventurer};
  struct gameState *currGame = (struct gameState *)malloc(sizeof(struct gameState));
  initializeGame(players, cards, s, currGame);

  // Played one Embargo Card
  printf("Current number of coins: %d \nCurrent number of Cards: %d \n",currGame->coins, currGame->handCount[0]);
  printf("Current number of Embargo Tokens: %d \n", currGame->embargoTokens[0]);
  cardEffect(embargo, 0, 0, 0, currGame, 0, 0);
  if ((currGame->coins == 6) ){
	printf("Played Embargo: Expected coins: 4+2, Result: %d --- PASS \n", currGame->coins);

  }else{
    printf("Played Embargo: Expected coins: 4+2, Result: %d --- FAIL \n", currGame->handCount[0]);
  }

  if (currGame->handCount[0] == 4){
	printf("Played Embargo: Expected cards: 5-1, Result: %d --- PASS \n", currGame->handCount[0]);
  }else{
    printf("Played Embargo: Expected cards: 5-1, Result: %d --- FAIL \n", currGame->handCount[0]);
  }

  if (currGame->embargoTokens[0]==1){
	printf("Played Embargo: Expected Embargo Tokens: 0+1, Result: %d --- PASS \n", currGame->embargoTokens[0]);
  }else{
    printf("Played Embargo: Expected Embargo Tokens: 0+1, Result: %d --- FAIL \n", currGame->embargoTokens[0]);
  }
  return 0;
}
